package com.yixia.pea.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.yixia.pea.domain.credit.PeaCreScore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* @author 35038
* @description 针对表【pea_cre_score】的数据库操作Mapper
* @createDate 2023-09-06 13:59:51
* @Entity com.yixia.pea.domain.credit.PeaCreScore
*/
public interface PeaCreScoreMapper extends BaseMapper<PeaCreScore> {

    // 看是否已经评了
    default PeaCreScore selectByHzId(Long hzId){
        LambdaQueryWrapper<PeaCreScore> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(PeaCreScore::getHzId, hzId);
        return this.selectOne(queryWrapper);
    }
}




